/*
 * 版权所有 (c) 2022-2099 TBIT。保留所有权利
 */

package com.tbit.common.constant;

import java.util.HashMap;
import java.util.Map;

/**
 * 通用全局常量类
 *
 * @author <a href="mailto:zhang.zhiliang@tbit.com.cn">Zhang ZhiLiang</a>
 * @version 1.0
 * @see <a href="http://adsl1.tbit.com.cn:21490/pages/viewpage.action?pageId=82182491">订单号规范</a>
 * @since 2024/5/13
 */
public class CommonConstant {
    public static final String TRACE_ID = "traceId";

    //快捷回复用户所属平台---客户端
    public static final Integer QUICK_REPLY_PLATFORM_CLIENT = 0;
    //快捷回复用户所属平台---管理端或运维端
    public static final Integer QUICK_REPLY_PLATFORM_MANAGER_OR_MAIN = 1;

    //快捷回复内容不能超过指定长度
    public static final int QUICK_REPLY_MAX_LENGTH = 200;

    //公告生效平台--客户端
    public static final int NOTICE_CLIENT_PLATFORM = 1;

    public static final String NOTICE_CLIENT_PLATFORM_NAME = "客户端";
    //公告生效平台--管理端
    public static final int NOTICE_MANAGER_PLATFORM = 2;
    public static final String NOTICE_MANAGER_PLATFORM_NAME = "网页平台";
    //公告生效平台--运维端
    public static final int NOTICE_MAIN_PLATFORM = 3;
    public static final String NOTICE_MAIN_PLATFORM_NAME = "运维端";

    public static final Map<Integer,String> NOTICE_PLATFORM_MAP = new HashMap<Integer,String>(){{
        put(NOTICE_CLIENT_PLATFORM,NOTICE_CLIENT_PLATFORM_NAME);
        put(NOTICE_MANAGER_PLATFORM,NOTICE_MANAGER_PLATFORM_NAME);
        put(NOTICE_MAIN_PLATFORM,NOTICE_MAIN_PLATFORM_NAME);
    }};

    //公告操作日志类型
    //曝光PV
    public static final int NOTICE_LOG_TYPE_EXPOSURE_PV = 1;
    //曝光UV
    public static final int NOTICE_LOG_TYPE_EXPOSURE_UV = 2;
    //点击PV
    public static final int NOTICE_LOG_TYPE_CLICK_PV = 3;
    //点击UV
    public static final int NOTICE_LOG_TYPE_CLICK_UV = 4;
    //阅读PV
    public static final int NOTICE_LOG_TYPE_READ_PV = 5;
    //阅读UV
    public static final int NOTICE_LOG_TYPE_READ_UV = 6;
}
